<div class="modal-header">
    <h3 class="modal-title">新建机构</h3>
</div>
<div class="modal-body">
    <form class="form-horizontal">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">机构名称</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="name" name="name" placeholder="请输入机构名称">
            </div>
        </div>
        <div class="form-group">
            <label for="fullName" class="col-sm-2 control-label">机构全称</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="fullName" name="fullName" placeholder="请输入机构全称">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">分类</label>
            <div class="col-sm-10">
                <div class="input-group">
                    <input type="text" class="form-control" placeholder="请选择" readonly="readonly" ng-model="payload.dictType">
                    <span class="input-group-btn">
                        <button class="btn btn-default" type="button"
                                dict-type-tree
                                dicttype="payload.dictType"
                        >选</button>
                    </span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label for="fullName" class="col-sm-2 control-label">成立时间</label>
            <div class="col-sm-10">
                <p class="input-group"
                   ng-init="pop3.open  = false">
                    <input type="text"
                           class="form-control"
                           placeholder="{{payload.endDate|date:'yyyy年MM月dd日'||'请选择成立时间'}}"
                           readonly
                           uib-datepicker-popup="{{dateFormat}}"
                           ng-model="endDate"
                           is-open="pop3.open"
                           datepicker-options="dateOptions"
                           current-text="今天"
                           clear-text="清除"
                           close-text="关闭"/>
                    <span class="input-group-btn">
                            <button type="button" class="btn btn-default" ng-click="pop3.open = true">
                                <i class="glyphicon glyphicon-calendar"></i>
                            </button>
                          </span>
                </p>
            </div>
        </div>
        <div class="form-group">
            <label for="subsidiaryDepartment" class="col-sm-2 control-label">子部门</label>
            <div class="col-sm-10">
                <input type="number" class="form-control" id="subsidiaryDepartment" name="remark" placeholder="请输入子部门个数">
            </div>
        </div>
        <div class="form-group">
            <label for="email" class="col-sm-2 control-label">部门邮箱</label>
            <div class="col-sm-10">
                <input type="email" class="form-control" id="email" name="remark" placeholder="请输入子部门邮箱">
            </div>
        </div>
        <div class="form-group">
            <label for="dutyPhone" class="col-sm-2 control-label">值班电话</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="dutyPhone" name="remark" placeholder="请输入子值班电话">
            </div>
        </div>
        <div class="form-group">
            <label for="dutyPhone" class="col-sm-2 control-label">部门收入</label>
            <div class="col-sm-10">
                <label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label>
                <div class="input-group">
                    <div class="input-group-addon">$</div>
                    <input type="number" class="form-control" id="exampleInputAmount" placeholder="Amount">
                    <div class="input-group-addon">.00</div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label for="dutyPhone" class="col-sm-2 control-label">业务范围</label>
            <div class="col-sm-10">
                <label class="checkbox-inline">
                    <input type="checkbox" id="inlineCheckbox1" value="option1"> 电子
                </label>
                <label class="checkbox-inline">
                    <input type="checkbox" id="inlineCheckbox2" value="option2"> 酒店
                </label>
                <label class="checkbox-inline">
                    <input type="checkbox" id="inlineCheckbox3" value="option3"> 服装
                </label>
            </div>
        </div>
        <div class="form-group">
                <label for="dutyPhone" class="col-sm-2 control-label">主营业务</label>
                <div class="col-sm-10">
                    <label class="radio-inline">
                        <input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1"> 电子
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2"> 酒店
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option3"> 服装
                    </label>
                </div>
        </div>
        <div class="form-group">
            <label for="remark" class="col-sm-2 control-label">备注</label>
            <div class="col-sm-10">
                <textarea class="form-control" rows="3" id="remark" name="remark"></textarea>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">确定</button>
    <button class="btn btn-warning" type="button" ng-click="dismiss()">关闭</button>
</div>